package check;

public class Checksum {

	public static void main(String[] args) {

		String[] str = new String[] { "111" };

		AppClass appobject = new AppClass();
		int retcode = 0;
		if (str.length < 1) {
			System.err.println("No string to check.");
			retcode = 2;
		} else if (str.length > 1) {
			System.err.println("Only one argument is accepted.");
			retcode = 3;
		} else {
			System.out.print("The string \"");
			System.out.print(str[0]);
			System.out.print("\" is ");
			if (appobject.CheckString(str[0]) == false) {
				System.out.println("not acceptable.");
				retcode = 1;
			} else {
				System.out.println("acceptable.");
			}
		}
		System.exit(retcode);
	}
}